using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class getImage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["img"] != null)
            {
                System.Drawing.Image img = (System.Drawing.Image)Session["img"];
                img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
                
                //img.Save("C:\\temp\\" + DateTime.Now.Minute.ToString() + "-" + DateTime.Now.Second.ToString() + "-" + DateTime.Now.Millisecond.ToString() + ".gif", System.Drawing.Imaging.ImageFormat.Gif);
            }
        }
    }
}
